package com.cr.sharding.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cr.sharding.dao.UserMapper;
import com.cr.sharding.entity.User;

/** 
* @author locket 
* @date 2019年12月13日 下午2:35:47 
* @version 1.0 
* @parameter  
* @since  
* @return  
*/
@Service
public class UserService {
    @Autowired
    UserMapper userMapper;
    
    public Long add(User user) {
        return userMapper.add(user);
    }
    
    public User info(User user) {
        return userMapper.info(user);
    }
    
    public List<User> list(User user) {
        return userMapper.list(user);
    }
    
}
